<template>
  <div class="container">
    <div class="list-container">
      <div class="filter">
        <el-row :gutter="20">
          <el-col :span="10">
            <span class="span-title">审批业务状态统计</span>
          </el-col>
        </el-row>
      </div>
      <div class="data-contant">
        <div>
          <el-table :data="list" height="350" v-loading="listLoading" element-loading-text="给我一点时间"
            size="small" stripe style="width: 100%;border:#eeeeee" highlight-current-row>
              <el-table-column
                align="center"
                label="序号"
                type="index"
              ></el-table-column>
              <el-table-column
                align="center"
                label="审批业务"
                prop="d"
              ></el-table-column>
              <el-table-column
                align="center"
                label="审核中"
                prop="a"
              ></el-table-column>
              <el-table-column
                align="center"
                label="已提交"
                prop="b"
              ></el-table-column>
              <el-table-column
                align="center"
                label="已完成"
                prop="c"
              ></el-table-column>
            </el-table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import '@/styles/newstyle.scss'
  export default {
    data() {
      return {
        list:[],
        listLoading: false
        }
    },
    // 画面刚进入method
    created() {
      this.fetchData()
    },
    methods: {
      fetchData() {
       this.listLoading = true
         this.$http.get('/apizgc/api/v1/motor-usage/get').then(function (res) {
         this.list = res.data
         this.listLoading = false
        })
      }
    }
  }

</script>

<style scoped>
  .container {
    padding: 1%;
    height: 100%;
    width: 100%;
    overflow-y: auto;
  }

  .select-container {
    padding: 10px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid#e4e7ed;
  }

  .list-container {
    margin-top: 30px;
    padding: 0 10px 10px 10px;
    border: 1px solid#e4e7ed;
    border-radius: 4px;
  }

  .data-contant {
    padding: 30px 10px 20px;
  }

  .data-detail {
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
  }

  .data-title {
    font-size: 14px;
    padding: 10px 0;
    text-align: center;
  }

  .data-title div {
    font-size: 14px;
    padding: 5px 0;
  }

  .filter {
    padding: 10px 5px;
    border-bottom: 2px solid#e4e7ed;
  }

  .list-container {}

  .bold {
    font-weight: bold;
  }

</style>
